package org.pine.dao;

import org.pine.model.Book;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @ ClassName BookDao
 * @ Description:TODO
 * @ Author lzs
 * @ Date 2021-01-29
 * @ Version V1.0
 */
public interface BookDao extends MongoRepository<Book,Integer> {
    List<Book> findByAuthorContains(String author);
    Book findByNameEquals(String name);
}
